import request from '@/utils/request'

// 查询流量数据记录列表
export function listDispatchFlowDataRecords(query) {
  return request({
    url: '/system/dispatchFlowDataRecords/list',
    method: 'get',
    params: query
  })
}

// 查询流量数据记录详细
export function getDispatchFlowDataRecords(flowDataRecordsId) {
  return request({
    url: '/system/dispatchFlowDataRecords/' + flowDataRecordsId,
    method: 'get'
  })
}

// 新增流量数据记录
export function addDispatchFlowDataRecords(data) {
  return request({
    url: '/system/dispatchFlowDataRecords',
    method: 'post',
    data: data
  })
}

// 修改流量数据记录
export function updateDispatchFlowDataRecords(data) {
  return request({
    url: '/system/dispatchFlowDataRecords',
    method: 'put',
    data: data
  })
}

// 删除流量数据记录
export function delDispatchFlowDataRecords(flowDataRecordsId) {
  return request({
    url: '/system/dispatchFlowDataRecords/' + flowDataRecordsId,
    method: 'delete'
  })
}
